﻿<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>

<div class="layout-cols2">
	
	<div class="col1">
	    
	    <div class="box">
	    <div class="pl">
		    <div class="pl_title">
		        <span>我的留言  ：<b><font name="fedcount" id="fedcount">{DataCount}</font> </b>条 
		        </span>
		    </div>
		    <span name="fedbk" id="fedbk">
		        
                <ul class="hugbook">
                    
	                <%csharp%>
	                    int floor = DataCount;
	                    foreach(CommentInfo item in CommentDataList) { 
		            <%/csharp%>
		            
	                <li>
	                    <div style="padding-left:20px; text-align:center; float:left;">
	                    <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.PostUserId;<%/csharp%>
	                    <a href="{this.GetUrl(TempUrl)}">
                            <img class="avatar" width="40" src="{item.PostAvatar}"/>
                        </a>
                        </div>
                        <div style="margin:0pt 10px 0pt 82px;">
                            <p class="graytext">
                                <span style="float:right;">
                                    <%csharp%>if(item.PostUserId == UserData.Id) { <%/csharp%>
		                            <%csharp%> TempUrl = "/User/CommentEdit.aspx?id=" + item.Id; <%/csharp%>
		                            <a href="{this.GetUrl(TempUrl)}">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;
		                            <%csharp%> }  <%/csharp%>
		                    
        		                    <%csharp%> TempUrl = "/User/CommentDel.aspx?id=" + item.Id; <%/csharp%>
		                            <a href="{this.GetUrl(TempUrl)}">删除</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                    第 {floor} 楼
                                </span>
                                <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.PostUserId;<%/csharp%>
                                <a class="client_name" href="{this.GetUrl(TempUrl)}">{item.PostUserName}</a>
                                <%csharp%>TempUrl = item.PostTime.ToString("yyyy-MM-dd  hh:mm");<%/csharp%>
                                {TempUrl}
                            </p>
                            <p class="longtextfix"> {item.Body} </p>
                        </div>
                        <div style="clear: both;"/>
	                </li>
	                
		            <%csharp%>
		                floor --;
		            }
		            <%/csharp%>
		            
	            </ul>

		    </span>
	    </div>     
	    </div>
	    
	    <div class="box">
			<div class="content">
				<div class="pages">
					{PagingString}
				</div>
			</div>
		</div>
	           
	</div> <!-- <div class="col1"> -->	

	
	<div class="col2">
        <%template _Menu%>
	</div>
	
</div>

<%template _footer%>		
